package com.egao.common.module.cooperative.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.JsonResult;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.cooperative.entity.CooperativeProjectBanner;

import java.util.List;

/**
 * 产教融合banner 服务接口
 * @author root
 */
public interface CooperativeProjectBannerService extends IService<CooperativeProjectBanner> {

    /**
     * 分页列表
     * @param page
     * @return
     */
    List<CooperativeProjectBanner> listPage(PageParam<CooperativeProjectBanner> page);

    /**
     * 添加修改
     * @param cooperativeProjectBanner
     * @return
     */
    JsonResult saveCooperativeProjectBanner(CooperativeProjectBanner cooperativeProjectBanner);

    /**
     * 修改公开状态
     * @param cooperativeProjectBanner
     * @return
     */
    JsonResult updateCooperativeProjectBanner(CooperativeProjectBanner cooperativeProjectBanner);

    /**
     * 逻辑删除
     * @param cooperativeProjectBanner
     * @return
     */
    JsonResult deleteCooperativeProjectBanner(CooperativeProjectBanner cooperativeProjectBanner);

    /**
     * 公开的banner
     * @return
     */
    List<CooperativeProjectBanner> listPublicity();
}
